<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>SurfaceChart.setSurfaceTexture</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="SurfaceChart.htm">SurfaceChart</a>.<wbr>setSurfaceTexture</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setSurfaceTexture(int patternColor)
</div>
<p class="heading2">Description</p>
<div class="content">
Adds a texture image to the surface.<br><br>
A texture is a 2D image pattern for mapping onto a 3D surface. The pattern can be defined by using <a href="BaseChart.patternColor.htm">BaseChart.patternColor</a> or <a href="BaseChart.patternColor2.htm">BaseChart.patternColor2</a>.<br><br>
One common usage of this method is to apply an image the same size as the plot region xy plane to the surface. To do this, simply use an image with width and height equals to the plot region width and depth.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>patternColor</td><td>(Mandatory)</td><td>A color (normally a pattern color) that contains the texture image to be applied to the surface.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
